package com.rui.patterns.adapter.object_adapter;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Computer
 * @createTime : [2022/2/22 15:14]
 * @description : [描述该类的功能]
 */

public class Computer {

    /**
     * 从SD卡中读取数据
     */
    public String readSD(SDCard sdCard){
        if(sdCard == null){
            throw new  NullPointerException("sdCard is null");
        }
        return sdCard.readSD();
    }
}
